<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{asset('/css/web/user/address.css')}}">
    <script src="{{asset('/js/web/user/address.js')}}"></script>
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
        
        @include('web.layout.member_nav')
        <div class="nav_right flr">
            <div class="base_content">
                <div class="bm_myaddress" id="bm_add" add_update="0">
                    <div class="m_myaddress">
                        <h2 class="title title_add">新增合同</h2>
                        <form action="{{$request_url}}" id="contracts_info" method="post">
                            @if(isset($type) && $type == 'put')
                                {{method_field("PUT")}}
                            @endif
                            {!!  csrf_field() !!}
                            <input type="hidden" name="id" value="{{old('id')}}" />
                            <div class="itembox">
                                <!-- <div class="item first clearfix">
                                    <span class="item-label f-lh36"><i>*</i>所在地区</span>
                                    @include('web.layout.city')
                                    @if($errors->has('area_code'))
                                    <p class="jm_error fl">{{$errors->first('area_code')}}</p>
                                    @endif
                                </div> -->
                                <div class="item item-fullname clearfix">
                                    <span class="item-label f-lh36"><i>*</i>合同名称</span>
                                    <input type="text" value="{{old('name')}}" name="name" class="item-input item-input-fullname submit_val" placeholder="合同名称" autocomplete="off">
                                    @if($errors->has('name'))
                                        <p class="jm_error fl">{{$errors->first('receiver')}}</p>
                                    @endif
                                </div>
                                <div class="item clearfix">
                                    <span class="item-label f-lh36"><i>*</i>合同条例</span>
                                    <textarea name="content" class="item-textarea submit_val" autocomplete="off" placeholder="合同条例">{{old('content')}}</textarea>
                                    @if($errors->has('content'))
                                        <p class="jm_error fl">{{$errors->first('content')}}</p>
                                    @endif
                                </div>
                                @if(isset($show)!=true)
                                <div class="item-bottom clearfix">
                                    <button class="item-submit" type="submit">保存合同</button>
                                </div>
                                @endif
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@include('web.layout.footer')
</body>
<script>
    $(function () {
        // $('.nav_left .address').addClass('selected');
       
    })
</script>
</html>